using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class scrolld_InfoMap : EntityTypeConfiguration<scrolld_Info>
    {
        public scrolld_InfoMap()
        {
            // Primary Key
            this.HasKey(t => t.scrolld_ID);

            // Properties
            this.Property(t => t.scrolld_Info1)
                .HasMaxLength(3000);

            this.Property(t => t.Create_pepole)
                .HasMaxLength(1);

            // Table & Column Mappings
            this.ToTable("scrolld_Info");
            this.Property(t => t.scrolld_ID).HasColumnName("scrolld_ID");
            this.Property(t => t.scrolld_Info1).HasColumnName("scrolld_Info");
            this.Property(t => t.ljsc).HasColumnName("ljsc");
            this.Property(t => t.Create_time).HasColumnName("Create_time");
            this.Property(t => t.Create_pepole).HasColumnName("Create_pepole");
        }
    }
}
